/**
 * 配置中心服务
 * 
 * @author YANGSHT
 */
// 创建配置模块
var publicServiceApp = angular.module("publicServiceApp", [ "commonApp" ]);
publicServiceApp.service('publicService', [
		'commonService',
		function(commonService) {

			// 登录验证
			this.doLogin = function(params, sback, eback) {
				commonService.call("public/publicService/doLogin", params, sback, eback);
			};
			
			// 查询所有菜单，按子父结构递归
			this.queryMenu = function(params, sback, eback) {
				commonService.call("sys/sysService/queryMenu", params, sback, eback);
			}
			
			// 查询所有菜单，一级结构展示
			this.queryAllMenu = function(params, sback, eback) {
				commonService.call("sys/sysService/queryAllMenu", params, sback, eback);
			}
			
			// 查询所有菜单，一级结构展示
			this.queryCurrentUser = function(params, sback, eback) {
				commonService.call("sys/sysService/queryCurrentUser", params, sback, eback);
			}
			
			// 退出当前登录
			this.exit = function(params, sback, eback) {
				commonService.call("public/publicService/exit", params, sback, eback);
			}

}]);